(()=>{"use strict";var e,t={95686:(e,t,n)=>{var a=h(n(88209)),r=h(n(2958)),o=h(n(31934));n(96672),n(84200);var i=h(n(88640)),l=h(n(3787)),u=n(892),f=h(n(77183)),c=h(n(51585)),d=h(n(8543)),s=h(n(9500)),v=h(n(14554));function h(e){return e&&e.__esModule?e:{default:e}}o.default.extend(i.default),a.default.init(window.init),window.CTFd=a.default,window.helpers=v.default,window.$=r.default,window.dayjs=o.default,window.nunjucks=l.default,window.Howl=u.Howl,(0,r.default)((function(){(0,d.default)(),(0,s.default)(),(0,f.default)(c.default.urlRoot)}))},83204:(e,t,n)=>{n(95686);var a=i(n(2958)),r=i(n(31934));n(96672),n(84200);var o=i(n(88209));function i(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(e){if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function f(e){e.preventDefault();var t=!0;if((0,a.default)(e.target).closest("[role=tabpanel]").find("input,textarea").each((function(e,n){var r=(0,a.default)(n);!1===n.checkValidity()&&(r.removeClass("input-filled-valid"),r.addClass("input-filled-invalid"),t=!1)})),0!=t){var n=(0,a.default)(e.target).data("href");(0,a.default)('.nav a[href="'.concat(n,'"]')).tab("show")}}function c(e){return function(t){var n=(0,a.default)("#".concat(e,"-date")),o=(0,a.default)("#".concat(e,"-time")),i=(0,r.default)("".concat(n.val()," ").concat(o.val()),"YYYY-MM-DD HH:mm").unix();isNaN(i)?(0,a.default)("#".concat(e,"-preview")).val(""):(0,a.default)("#".concat(e,"-preview")).val(i)}}function d(e){var t={name:(0,a.default)("#ctf_name").val(),type:"jeopardy",description:(0,a.default)("#ctf_description").val(),user_mode:(0,a.default)("#user_mode").val(),event_url:window.location.origin+o.default.config.urlRoot,redirect_url:window.location.origin+o.default.config.urlRoot+"/redirect",integration_setup_url:window.location.origin+o.default.config.urlRoot+"/setup/integrations",start:(0,a.default)("#start-preview").val(),end:(0,a.default)("#end-preview").val(),platform:"CTFd",state:window.STATE},n=[];for(var r in t)n.push(encodeURIComponent(r)+"="+encodeURIComponent(t[r]));window.open("https://www.majorleaguecyber.org/events/new?"+n.join("&"),"_blank")}function s(e){var t,n,a,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){u=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(u)throw o}}}}(document.cookie.split("; "));try{for(r.s();!(t=r.n()).done;){var o=(n=t.value.split("="),a=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,o,i,l=[],u=!0,f=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(a=o.call(n)).done)&&(l.push(a.value),l.length!==t);u=!0);}catch(e){f=!0,r=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(f)throw r}}return l}}(n,a)||l(n,a)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],u=o[1];if(i===e)return decodeURIComponent(u)}}catch(e){r.e(e)}finally{r.f()}return null}(0,a.default)((function(){(0,a.default)(".tab-next").click(f),(0,a.default)("input").on("keypress",(function(e){13==e.keyCode&&(e.preventDefault(),(0,a.default)(e.target).closest(".tab-pane").find("button[data-href]").click())})),(0,a.default)("#integration-mlc").click(d),(0,a.default)("#start-date,#start-time").change(c("start")),(0,a.default)("#end-date,#end-time").change(c("end")),(0,a.default)("#config-color-picker").on("input",(function(e){(0,a.default)("#config-color-input").val((0,a.default)(this).val())})),(0,a.default)("#config-color-reset").click((function(){(0,a.default)("#config-color-input").val(""),(0,a.default)("#config-color-picker").val("")})),(0,a.default)("#ctf_logo").on("change",(function(){this.files[0].size>128e3&&(confirm("en"===s("Scr1wCTFdLanguage")?"This image file is larger than 128KB which may result in increased load times. Are you sure you'd like to use this logo?":"此图像文件大于 128KB，这可能会导致加载时间增加。您确定要使用此徽标吗？")||(this.value=""))})),(0,a.default)("#ctf_banner").on("change",(function(){this.files[0].size>512e3&&(confirm("en"===s("Scr1wCTFdLanguage")?"This image file is larger than 512KB which may result in increased load times. Are you sure you'd like to use this icon?":"此图像文件大于 512KB，可能会导致加载时间增加。您确定要使用此图标吗？")||(this.value=""))})),(0,a.default)("#ctf_small_icon").on("change",(function(){this.files[0].size>32e3&&(confirm("en"===s("Scr1wCTFdLanguage")?"This image file is larger than 32KB which may result in increased load times. Are you sure you'd like to use this icon?":"此图像文件大于 32KB，可能会导致加载时间增加。您确定要使用此图标吗？")||(this.value=""))})),window.addEventListener("storage",(function(e){"integrations"==e.key&&e.newValue&&"mlc"==JSON.parse(e.newValue).name&&((0,a.default)("#integration-mlc").text("Already Configured").attr("disabled",!0),window.focus(),localStorage.removeItem("integrations"))})),(0,a.default)("#setup-form").submit((function(e){if((0,a.default)("#newsletter-checkbox").prop("checked")){var t=(0,a.default)(e.target).find("input[name=email]").val();a.default.ajax({url:"https://newsletters.ctfd.io/lists/ot889gr1sa0e1/subscribe/post-json?c=?",data:{email:t,b_38e27f7d496889133d2214208_d7c3ed71f9:""},dataType:"jsonp",contentType:"application/json; charset=utf-8"})}}))}))}},n={};function a(e){var r=n[e];if(void 0!==r)return r.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e](o,o.exports,a),o.loaded=!0,o.exports}a.m=t,e=[],a.O=(t,n,r,o)=>{if(!n){var i=1/0;for(c=0;c<e.length;c++){for(var[n,r,o]=e[c],l=!0,u=0;u<n.length;u++)(!1&o||i>=o)&&Object.keys(a.O).every((e=>a.O[e](n[u])))?n.splice(u--,1):(l=!1,o<i&&(i=o));if(l){e.splice(c--,1);var f=r();void 0!==f&&(t=f)}}return t}o=o||0;for(var c=e.length;c>0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[n,r,o]},a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={463:0,671:0};a.O.j=t=>0===e[t];var t=(t,n)=>{var r,o,[i,l,u]=n,f=0;if(i.some((t=>0!==e[t]))){for(r in l)a.o(l,r)&&(a.m[r]=l[r]);if(u)var c=u(a)}for(t&&t(n);f<i.length;f++)o=i[f],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0;return a.O(c)},n=self.webpackChunkctfd=self.webpackChunkctfd||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var r=a.O(void 0,[736,788],(()=>a(83204)));r=a.O(r)})();